getOrNull

abstract fun getOrNull(): T?

Gets the value of a Success or null if this is a Failure.

Return

Value of a Success or null.